import { get, post, download } from '@/utils/request'

export default class OnlineColumnController {
  static list(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/list`, params)
  }
  static view(params) {
    return get(`/service-workflow/b/form/onlineColumn/v1/view`, params)
  }
  static export(params, fileName) {
    return download(`/service-workflow/b/form/onlineColumn/v1/export`, params, fileName)
  }
  static add(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/add`, params)
  }
  static update(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/update`, params)
  }
  static refreshColumn(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/refresh`, params)
  }
  static delete(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/delete`, params)
  }
  static listOnlineColumnRule(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/listOnlineColumnRule`, params)
  }
  static listNotInOnlineColumnRule(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/listNotInOnlineColumnRule`, params)
  }
  static addOnlineColumnRule(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/addOnlineColumnRule`, params)
  }
  static deleteOnlineColumnRule(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/deleteOnlineColumnRule`, params)
  }
  static updateOnlineColumnRule(params) {
    return post(`/service-workflow/b/form/onlineColumn/v1/updateOnlineColumnRule`, params)
  }
  static viewOnlineColumnRule(params) {
    return get(`/service-workflow/b/form/onlineColumn/v1/viewOnlineColumnRule`, params)
  }
}
